const app = getApp()
Page({
    data:{
      goodsList:{},
      gameId:'',
      gameInfo:{}
      
    },
   onLoad: function (options) {
     var that=this
     that.setData({
     gameId:options.gameId,
     gameInfo:app.globalData.gameImage
     })
     wx.request({
       url: app.globalData.url+'searchGoodByGameAction',
       data:{
         gameId:that.data.gameId
       },
       success:function(res){
         that.setData({
           goodsList: res.data
         })
         console.log(res.data)
       }
     })
   },

})